package dart

import org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException

class DartTagLib {
	static namespace = "dart"

	def css = {Map attrs, body ->
		if (attrs['src'] == null)
			throw new GrailsTagException('Tag [css] must have the attribute [src]');

		out << "<link rel='stylesheet' href='/DART/css/${attrs.src}'/>\n"
	}
}